\subsection{ctapi.h File Reference}
\label{ctapi_8h}\index{ctapi.h@{ctapi.h}}


Declarations for virtual CT-\/API library.  


{\ttfamily \#include $<$types.h$>$}\par
\subsubsection*{Defines}
\begin{DoxyCompactItemize}
\item 
\#define {\bf CTAPI\_\-AD\_\-ICC1}~0
\item 
\#define {\bf CTAPI\_\-AD\_\-CT}~1
\item 
\#define {\bf CTAPI\_\-AD\_\-HOST}~2
\item 
\#define {\bf CTAPI\_\-RV\_\-OK}~0
\item 
\#define {\bf CTAPI\_\-RV\_\-ERR\_\-INVALID}~-\/1
\item 
\#define {\bf CTAPI\_\-RV\_\-ERR\_\-CT}~-\/8
\item 
\#define {\bf CTAPI\_\-RV\_\-ERR\_\-TRANS}~-\/10
\item 
\#define {\bf CTAPI\_\-RV\_\-ERR\_\-MEMORY}~-\/11
\item 
\#define {\bf CTAPI\_\-RV\_\-ERR\_\-HOST}~-\/127
\item 
\#define {\bf CTAPI\_\-RV\_\-ERR\_\-HTSI}~-\/128
\item 
\#define {\bf CTAPI\_\-PORT}~1
\item 
\#define {\bf CTAPI\_\-CLA}~0x20
\item 
\#define {\bf CTAPI\_\-INS\_\-RESET\_\-CT}~0x11
\item 
\#define {\bf CTAPI\_\-INS\_\-REQUEST\_\-ICC}~0x12
\item 
\#define {\bf CTAPI\_\-INS\_\-GET\_\-STATUS}~0x13
\item 
\#define {\bf CTAPI\_\-INS\_\-EJECT\_\-ICC}~0x14
\item 
\#define {\bf CTAPI\_\-INS\_\-EEPROM}~0xE0
\end{DoxyCompactItemize}
\subsubsection*{Typedefs}
\begin{DoxyCompactItemize}
\item 
typedef unsigned char {\bf IU8}
\item 
typedef signed char {\bf IS8}
\item 
typedef unsigned short {\bf IU16}
\item 
typedef signed short {\bf IS16}
\item 
typedef unsigned long {\bf IU32}
\item 
typedef signed long {\bf IS32}
\end{DoxyCompactItemize}
\subsubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
{\bf IS8} {\bf CT\_\-forkIcc} (void)
\item 
{\bf IS8} {\bf CT\_\-stopIcc} (void)
\item 
{\bf IS8} {\bf CT\_\-ifdCmdEepromFile} ({\bf IU16} lenc, {\bf IU8} $\ast$command, {\bf IU16} $\ast$lenr, {\bf IU8} $\ast${\bf response})
\begin{DoxyCompactList}\small\item\em Parses EEPROM FILE command. \item\end{DoxyCompactList}\item 
{\bf IS8} {\bf CT\_\-ifdCmdResetCT} ({\bf IU16} lenc, {\bf IU8} $\ast$command, {\bf IU16} $\ast$lenr, {\bf IU8} $\ast${\bf response})
\item 
{\bf IS8} {\bf CT\_\-ifdCmdRequestICC} ({\bf IU16} lenc, {\bf IU8} $\ast$command, {\bf IU16} $\ast$lenr, {\bf IU8} $\ast${\bf response})
\item 
{\bf IS8} {\bf CT\_\-ifdCmdGetStatus} ({\bf IU16} lenc, {\bf IU8} $\ast$command, {\bf IU16} $\ast$lenr, {\bf IU8} $\ast${\bf response})
\item 
{\bf IS8} {\bf CT\_\-ifdCmdEjectICC} ({\bf IU16} lenc, {\bf IU8} $\ast$command, {\bf IU16} $\ast$lenr, {\bf IU8} $\ast${\bf response})
\item 
{\bf IS8} {\bf CT\_\-ifdCmd} ({\bf IU16} lenc, {\bf IU8} $\ast$command, {\bf IU16} $\ast$lenr, {\bf IU8} $\ast${\bf response})
\item 
{\bf IS8} {\bf CT\_\-iccCmd} ({\bf IU8} $\ast$dad, {\bf IU8} $\ast$sad, {\bf IU16} lenc, {\bf IU8} $\ast$command, {\bf IU16} $\ast$lenr, {\bf IU8} $\ast${\bf response})
\item 
{\bf IS8} {\bf CT\_\-init} ({\bf IU16} ctn, {\bf IU16} pn)
\item 
{\bf IS8} {\bf CT\_\-data} ({\bf IU16} ctn, {\bf IU8} $\ast$dad, {\bf IU8} $\ast$sad, {\bf IU16} lenc, {\bf IU8} $\ast$command, {\bf IU16} $\ast$lenr, {\bf IU8} $\ast${\bf response})
\item 
{\bf IS8} {\bf CT\_\-close} ({\bf IU16} ctn)
\end{DoxyCompactItemize}
\subsubsection*{Variables}
\begin{DoxyCompactItemize}
\item 
int {\bf fd\_\-fromCard} [2]
\item 
int {\bf fd\_\-toCard} [2]
\item 
int {\bf loadEepromFile}
\item 
int {\bf saveEepromFile}
\item 
char {\bf eepromFile} [256]
\item 
int {\bf fdEepromFile}
\end{DoxyCompactItemize}


\subsubsection{Detailed Description}
Declarations for virtual CT-\/API library. \begin{DoxyParagraph}{Id:}
\doxyref{ctapi.h}{p.}{ctapi_8h},v 1.2 2002/12/22 23:16:15 m Exp 
\end{DoxyParagraph}


\subsubsection{Define Documentation}
\index{ctapi.h@{ctapi.h}!CTAPI\_\-AD\_\-CT@{CTAPI\_\-AD\_\-CT}}
\index{CTAPI\_\-AD\_\-CT@{CTAPI\_\-AD\_\-CT}!ctapi.h@{ctapi.h}}
\paragraph[{CTAPI\_\-AD\_\-CT}]{\setlength{\rightskip}{0pt plus 5cm}\#define CTAPI\_\-AD\_\-CT~1}\hfill\label{ctapi_8h_a67f0456fae34d97ced4956aa74d11247}


Referenced by CT\_\-data().

\index{ctapi.h@{ctapi.h}!CTAPI\_\-AD\_\-HOST@{CTAPI\_\-AD\_\-HOST}}
\index{CTAPI\_\-AD\_\-HOST@{CTAPI\_\-AD\_\-HOST}!ctapi.h@{ctapi.h}}
\paragraph[{CTAPI\_\-AD\_\-HOST}]{\setlength{\rightskip}{0pt plus 5cm}\#define CTAPI\_\-AD\_\-HOST~2}\hfill\label{ctapi_8h_afd739a4469528c521cc146dd4c517d66}


Referenced by CT\_\-data().

\index{ctapi.h@{ctapi.h}!CTAPI\_\-AD\_\-ICC1@{CTAPI\_\-AD\_\-ICC1}}
\index{CTAPI\_\-AD\_\-ICC1@{CTAPI\_\-AD\_\-ICC1}!ctapi.h@{ctapi.h}}
\paragraph[{CTAPI\_\-AD\_\-ICC1}]{\setlength{\rightskip}{0pt plus 5cm}\#define CTAPI\_\-AD\_\-ICC1~0}\hfill\label{ctapi_8h_a57efec63134aeb32b94cc993dffaf5c5}


Referenced by CT\_\-data().

\index{ctapi.h@{ctapi.h}!CTAPI\_\-CLA@{CTAPI\_\-CLA}}
\index{CTAPI\_\-CLA@{CTAPI\_\-CLA}!ctapi.h@{ctapi.h}}
\paragraph[{CTAPI\_\-CLA}]{\setlength{\rightskip}{0pt plus 5cm}\#define CTAPI\_\-CLA~0x20}\hfill\label{ctapi_8h_a2ca3f438ec43f581efbd8a83f3ed8b2d}
\index{ctapi.h@{ctapi.h}!CTAPI\_\-INS\_\-EEPROM@{CTAPI\_\-INS\_\-EEPROM}}
\index{CTAPI\_\-INS\_\-EEPROM@{CTAPI\_\-INS\_\-EEPROM}!ctapi.h@{ctapi.h}}
\paragraph[{CTAPI\_\-INS\_\-EEPROM}]{\setlength{\rightskip}{0pt plus 5cm}\#define CTAPI\_\-INS\_\-EEPROM~0xE0}\hfill\label{ctapi_8h_a5183589777ef4b73ee19b742bac44cf4}


Referenced by CT\_\-ifdCmd().

\index{ctapi.h@{ctapi.h}!CTAPI\_\-INS\_\-EJECT\_\-ICC@{CTAPI\_\-INS\_\-EJECT\_\-ICC}}
\index{CTAPI\_\-INS\_\-EJECT\_\-ICC@{CTAPI\_\-INS\_\-EJECT\_\-ICC}!ctapi.h@{ctapi.h}}
\paragraph[{CTAPI\_\-INS\_\-EJECT\_\-ICC}]{\setlength{\rightskip}{0pt plus 5cm}\#define CTAPI\_\-INS\_\-EJECT\_\-ICC~0x14}\hfill\label{ctapi_8h_a70bbad4c8868c45b77e94f2d081e2a69}


Referenced by CT\_\-ifdCmd().

\index{ctapi.h@{ctapi.h}!CTAPI\_\-INS\_\-GET\_\-STATUS@{CTAPI\_\-INS\_\-GET\_\-STATUS}}
\index{CTAPI\_\-INS\_\-GET\_\-STATUS@{CTAPI\_\-INS\_\-GET\_\-STATUS}!ctapi.h@{ctapi.h}}
\paragraph[{CTAPI\_\-INS\_\-GET\_\-STATUS}]{\setlength{\rightskip}{0pt plus 5cm}\#define CTAPI\_\-INS\_\-GET\_\-STATUS~0x13}\hfill\label{ctapi_8h_adf1f0f0e8d49dc5f7bf18347debadf9e}


Referenced by CT\_\-ifdCmd().

\index{ctapi.h@{ctapi.h}!CTAPI\_\-INS\_\-REQUEST\_\-ICC@{CTAPI\_\-INS\_\-REQUEST\_\-ICC}}
\index{CTAPI\_\-INS\_\-REQUEST\_\-ICC@{CTAPI\_\-INS\_\-REQUEST\_\-ICC}!ctapi.h@{ctapi.h}}
\paragraph[{CTAPI\_\-INS\_\-REQUEST\_\-ICC}]{\setlength{\rightskip}{0pt plus 5cm}\#define CTAPI\_\-INS\_\-REQUEST\_\-ICC~0x12}\hfill\label{ctapi_8h_ac46c8518f356b7fe04a0830204967a4b}


Referenced by CT\_\-ifdCmd().

\index{ctapi.h@{ctapi.h}!CTAPI\_\-INS\_\-RESET\_\-CT@{CTAPI\_\-INS\_\-RESET\_\-CT}}
\index{CTAPI\_\-INS\_\-RESET\_\-CT@{CTAPI\_\-INS\_\-RESET\_\-CT}!ctapi.h@{ctapi.h}}
\paragraph[{CTAPI\_\-INS\_\-RESET\_\-CT}]{\setlength{\rightskip}{0pt plus 5cm}\#define CTAPI\_\-INS\_\-RESET\_\-CT~0x11}\hfill\label{ctapi_8h_a80ade8fb60386f68f29edfda531f058a}


Referenced by CT\_\-ifdCmd().

\index{ctapi.h@{ctapi.h}!CTAPI\_\-PORT@{CTAPI\_\-PORT}}
\index{CTAPI\_\-PORT@{CTAPI\_\-PORT}!ctapi.h@{ctapi.h}}
\paragraph[{CTAPI\_\-PORT}]{\setlength{\rightskip}{0pt plus 5cm}\#define CTAPI\_\-PORT~1}\hfill\label{ctapi_8h_ac6a92f7776385b682d6a52a5bd685be7}


Referenced by CT\_\-init().

\index{ctapi.h@{ctapi.h}!CTAPI\_\-RV\_\-ERR\_\-CT@{CTAPI\_\-RV\_\-ERR\_\-CT}}
\index{CTAPI\_\-RV\_\-ERR\_\-CT@{CTAPI\_\-RV\_\-ERR\_\-CT}!ctapi.h@{ctapi.h}}
\paragraph[{CTAPI\_\-RV\_\-ERR\_\-CT}]{\setlength{\rightskip}{0pt plus 5cm}\#define CTAPI\_\-RV\_\-ERR\_\-CT~-\/8}\hfill\label{ctapi_8h_ada0fdfc5541d3ad3abbf96be734a6aa1}
\index{ctapi.h@{ctapi.h}!CTAPI\_\-RV\_\-ERR\_\-HOST@{CTAPI\_\-RV\_\-ERR\_\-HOST}}
\index{CTAPI\_\-RV\_\-ERR\_\-HOST@{CTAPI\_\-RV\_\-ERR\_\-HOST}!ctapi.h@{ctapi.h}}
\paragraph[{CTAPI\_\-RV\_\-ERR\_\-HOST}]{\setlength{\rightskip}{0pt plus 5cm}\#define CTAPI\_\-RV\_\-ERR\_\-HOST~-\/127}\hfill\label{ctapi_8h_a50291573b5e5183e0c3d1cbe00de9ca8}
\index{ctapi.h@{ctapi.h}!CTAPI\_\-RV\_\-ERR\_\-HTSI@{CTAPI\_\-RV\_\-ERR\_\-HTSI}}
\index{CTAPI\_\-RV\_\-ERR\_\-HTSI@{CTAPI\_\-RV\_\-ERR\_\-HTSI}!ctapi.h@{ctapi.h}}
\paragraph[{CTAPI\_\-RV\_\-ERR\_\-HTSI}]{\setlength{\rightskip}{0pt plus 5cm}\#define CTAPI\_\-RV\_\-ERR\_\-HTSI~-\/128}\hfill\label{ctapi_8h_a5cfecb2d395d7ce1de0326cc231afd3c}
\index{ctapi.h@{ctapi.h}!CTAPI\_\-RV\_\-ERR\_\-INVALID@{CTAPI\_\-RV\_\-ERR\_\-INVALID}}
\index{CTAPI\_\-RV\_\-ERR\_\-INVALID@{CTAPI\_\-RV\_\-ERR\_\-INVALID}!ctapi.h@{ctapi.h}}
\paragraph[{CTAPI\_\-RV\_\-ERR\_\-INVALID}]{\setlength{\rightskip}{0pt plus 5cm}\#define CTAPI\_\-RV\_\-ERR\_\-INVALID~-\/1}\hfill\label{ctapi_8h_a2d648e46219b2871618bf1ed73d2f743}
\index{ctapi.h@{ctapi.h}!CTAPI\_\-RV\_\-ERR\_\-MEMORY@{CTAPI\_\-RV\_\-ERR\_\-MEMORY}}
\index{CTAPI\_\-RV\_\-ERR\_\-MEMORY@{CTAPI\_\-RV\_\-ERR\_\-MEMORY}!ctapi.h@{ctapi.h}}
\paragraph[{CTAPI\_\-RV\_\-ERR\_\-MEMORY}]{\setlength{\rightskip}{0pt plus 5cm}\#define CTAPI\_\-RV\_\-ERR\_\-MEMORY~-\/11}\hfill\label{ctapi_8h_aae1f3fab27f6fd255920f310589d9e15}
\index{ctapi.h@{ctapi.h}!CTAPI\_\-RV\_\-ERR\_\-TRANS@{CTAPI\_\-RV\_\-ERR\_\-TRANS}}
\index{CTAPI\_\-RV\_\-ERR\_\-TRANS@{CTAPI\_\-RV\_\-ERR\_\-TRANS}!ctapi.h@{ctapi.h}}
\paragraph[{CTAPI\_\-RV\_\-ERR\_\-TRANS}]{\setlength{\rightskip}{0pt plus 5cm}\#define CTAPI\_\-RV\_\-ERR\_\-TRANS~-\/10}\hfill\label{ctapi_8h_af5b2461e4c94ce82f4a9e90524b6b1a3}


Referenced by CT\_\-t0().

\index{ctapi.h@{ctapi.h}!CTAPI\_\-RV\_\-OK@{CTAPI\_\-RV\_\-OK}}
\index{CTAPI\_\-RV\_\-OK@{CTAPI\_\-RV\_\-OK}!ctapi.h@{ctapi.h}}
\paragraph[{CTAPI\_\-RV\_\-OK}]{\setlength{\rightskip}{0pt plus 5cm}\#define CTAPI\_\-RV\_\-OK~0}\hfill\label{ctapi_8h_a067c4b4bee15536c57fbcb7d0c736ffc}


Referenced by CT\_\-close(), CT\_\-forkIcc(), CT\_\-ifdCmdRequestICC(), CT\_\-ifdCmdResetCT(), and CT\_\-t0().



\subsubsection{Typedef Documentation}
\index{ctapi.h@{ctapi.h}!IS16@{IS16}}
\index{IS16@{IS16}!ctapi.h@{ctapi.h}}
\paragraph[{IS16}]{\setlength{\rightskip}{0pt plus 5cm}typedef signed short {\bf IS16}}\hfill\label{ctapi_8h_a3186692362938d461c0baec1173ce1e7}
\index{ctapi.h@{ctapi.h}!IS32@{IS32}}
\index{IS32@{IS32}!ctapi.h@{ctapi.h}}
\paragraph[{IS32}]{\setlength{\rightskip}{0pt plus 5cm}typedef signed long {\bf IS32}}\hfill\label{ctapi_8h_a1c3fcd7da6f72230cadc6952f51c14aa}
\index{ctapi.h@{ctapi.h}!IS8@{IS8}}
\index{IS8@{IS8}!ctapi.h@{ctapi.h}}
\paragraph[{IS8}]{\setlength{\rightskip}{0pt plus 5cm}typedef signed char {\bf IS8}}\hfill\label{ctapi_8h_a5c1918daa61799e8f263267c79c98775}
\index{ctapi.h@{ctapi.h}!IU16@{IU16}}
\index{IU16@{IU16}!ctapi.h@{ctapi.h}}
\paragraph[{IU16}]{\setlength{\rightskip}{0pt plus 5cm}typedef unsigned short {\bf IU16}}\hfill\label{ctapi_8h_aefb072b16108a72c92fa2f9d44e474a5}
\index{ctapi.h@{ctapi.h}!IU32@{IU32}}
\index{IU32@{IU32}!ctapi.h@{ctapi.h}}
\paragraph[{IU32}]{\setlength{\rightskip}{0pt plus 5cm}typedef unsigned long {\bf IU32}}\hfill\label{ctapi_8h_a9780b620d4bf5bee153ead1f3e3c11dc}
\index{ctapi.h@{ctapi.h}!IU8@{IU8}}
\index{IU8@{IU8}!ctapi.h@{ctapi.h}}
\paragraph[{IU8}]{\setlength{\rightskip}{0pt plus 5cm}typedef unsigned char {\bf IU8}}\hfill\label{ctapi_8h_ab15a19eb300c109e1d94e2b234454126}


\subsubsection{Function Documentation}
\index{ctapi.h@{ctapi.h}!CT\_\-close@{CT\_\-close}}
\index{CT\_\-close@{CT\_\-close}!ctapi.h@{ctapi.h}}
\paragraph[{CT\_\-close}]{\setlength{\rightskip}{0pt plus 5cm}{\bf IS8} CT\_\-close (
\begin{DoxyParamCaption}
\item[{{\bf IU16}}]{ ctn}
\end{DoxyParamCaption}
)}\hfill\label{ctapi_8h_a67b4abae7b7747f70770a4cd0a96ae94}


References CT\_\-stopIcc(), CTAPI\_\-RV\_\-OK, and cthandle.

\index{ctapi.h@{ctapi.h}!CT\_\-data@{CT\_\-data}}
\index{CT\_\-data@{CT\_\-data}!ctapi.h@{ctapi.h}}
\paragraph[{CT\_\-data}]{\setlength{\rightskip}{0pt plus 5cm}{\bf IS8} CT\_\-data (
\begin{DoxyParamCaption}
\item[{{\bf IU16}}]{ ctn, }
\item[{{\bf IU8} $\ast$}]{ dad, }
\item[{{\bf IU8} $\ast$}]{ sad, }
\item[{{\bf IU16}}]{ lenc, }
\item[{{\bf IU8} $\ast$}]{ command, }
\item[{{\bf IU16} $\ast$}]{ lenr, }
\item[{{\bf IU8} $\ast$}]{ response}
\end{DoxyParamCaption}
)}\hfill\label{ctapi_8h_a13d6bd18636dbb982be987e695a4b747}


References CT\_\-iccCmd(), CT\_\-ifdCmd(), CTAPI\_\-AD\_\-CT, CTAPI\_\-AD\_\-HOST, CTAPI\_\-AD\_\-ICC1, and cthandle.

\index{ctapi.h@{ctapi.h}!CT\_\-forkIcc@{CT\_\-forkIcc}}
\index{CT\_\-forkIcc@{CT\_\-forkIcc}!ctapi.h@{ctapi.h}}
\paragraph[{CT\_\-forkIcc}]{\setlength{\rightskip}{0pt plus 5cm}{\bf IS8} CT\_\-forkIcc (
\begin{DoxyParamCaption}
\item[{void}]{}
\end{DoxyParamCaption}
)}\hfill\label{ctapi_8h_a98caba510268b73db36f0782254f733f}


References atr, atrlen, CT\_\-stopIcc(), CTAPI\_\-RV\_\-OK, fd\_\-fromCard, fd\_\-toCard, and pidVirtuaCard.



Referenced by CT\_\-ifdCmdRequestICC(), and CT\_\-ifdCmdResetCT().

\index{ctapi.h@{ctapi.h}!CT\_\-iccCmd@{CT\_\-iccCmd}}
\index{CT\_\-iccCmd@{CT\_\-iccCmd}!ctapi.h@{ctapi.h}}
\paragraph[{CT\_\-iccCmd}]{\setlength{\rightskip}{0pt plus 5cm}{\bf IS8} CT\_\-iccCmd (
\begin{DoxyParamCaption}
\item[{{\bf IU8} $\ast$}]{ dad, }
\item[{{\bf IU8} $\ast$}]{ sad, }
\item[{{\bf IU16}}]{ lenc, }
\item[{{\bf IU8} $\ast$}]{ command, }
\item[{{\bf IU16} $\ast$}]{ lenr, }
\item[{{\bf IU8} $\ast$}]{ response}
\end{DoxyParamCaption}
)}\hfill\label{ctapi_8h_a6e8efacf1d6a9c2baec39122663eb693}


References CT\_\-t0(), and pidVirtuaCard.



Referenced by CT\_\-data().

\index{ctapi.h@{ctapi.h}!CT\_\-ifdCmd@{CT\_\-ifdCmd}}
\index{CT\_\-ifdCmd@{CT\_\-ifdCmd}!ctapi.h@{ctapi.h}}
\paragraph[{CT\_\-ifdCmd}]{\setlength{\rightskip}{0pt plus 5cm}{\bf IS8} CT\_\-ifdCmd (
\begin{DoxyParamCaption}
\item[{{\bf IU16}}]{ lenc, }
\item[{{\bf IU8} $\ast$}]{ command, }
\item[{{\bf IU16} $\ast$}]{ lenr, }
\item[{{\bf IU8} $\ast$}]{ response}
\end{DoxyParamCaption}
)}\hfill\label{ctapi_8h_a2721d2def6d1963a8e2ae2c030e58c7a}


References CT\_\-ifdCmdEepromFile(), CT\_\-ifdCmdEjectICC(), CT\_\-ifdCmdGetStatus(), CT\_\-ifdCmdRequestICC(), CT\_\-ifdCmdResetCT(), CTAPI\_\-INS\_\-EEPROM, CTAPI\_\-INS\_\-EJECT\_\-ICC, CTAPI\_\-INS\_\-GET\_\-STATUS, CTAPI\_\-INS\_\-REQUEST\_\-ICC, and CTAPI\_\-INS\_\-RESET\_\-CT.



Referenced by CT\_\-data().

\index{ctapi.h@{ctapi.h}!CT\_\-ifdCmdEepromFile@{CT\_\-ifdCmdEepromFile}}
\index{CT\_\-ifdCmdEepromFile@{CT\_\-ifdCmdEepromFile}!ctapi.h@{ctapi.h}}
\paragraph[{CT\_\-ifdCmdEepromFile}]{\setlength{\rightskip}{0pt plus 5cm}{\bf IS8} CT\_\-ifdCmdEepromFile (
\begin{DoxyParamCaption}
\item[{{\bf IU16}}]{ lenc, }
\item[{{\bf IU8} $\ast$}]{ command, }
\item[{{\bf IU16} $\ast$}]{ lenr, }
\item[{{\bf IU8} $\ast$}]{ response}
\end{DoxyParamCaption}
)}\hfill\label{ctapi_8h_a3f9effa1af0997b57f4fcf5f5ca6b063}


Parses EEPROM FILE command. 


\begin{DoxyItemize}
\item CLA: '20'
\item INS: 'E0'
\item P1:
\begin{DoxyItemize}
\item bit 1: Save EEPROM to file at eject or reset.
\item bit 2: Load EEPROM from file at reset.
\end{DoxyItemize}
\item P2: RFU
\item Lc: Length of file name
\item Data: File name (possibly including path) without null-\/termination 
\end{DoxyItemize}

References eepromFile, loadEepromFile, and saveEepromFile.



Referenced by CT\_\-ifdCmd().

\index{ctapi.h@{ctapi.h}!CT\_\-ifdCmdEjectICC@{CT\_\-ifdCmdEjectICC}}
\index{CT\_\-ifdCmdEjectICC@{CT\_\-ifdCmdEjectICC}!ctapi.h@{ctapi.h}}
\paragraph[{CT\_\-ifdCmdEjectICC}]{\setlength{\rightskip}{0pt plus 5cm}{\bf IS8} CT\_\-ifdCmdEjectICC (
\begin{DoxyParamCaption}
\item[{{\bf IU16}}]{ lenc, }
\item[{{\bf IU8} $\ast$}]{ command, }
\item[{{\bf IU16} $\ast$}]{ lenr, }
\item[{{\bf IU8} $\ast$}]{ response}
\end{DoxyParamCaption}
)}\hfill\label{ctapi_8h_a101877b1f26262069c4bf34174f28004}


References CT\_\-stopIcc().



Referenced by CT\_\-ifdCmd().

\index{ctapi.h@{ctapi.h}!CT\_\-ifdCmdGetStatus@{CT\_\-ifdCmdGetStatus}}
\index{CT\_\-ifdCmdGetStatus@{CT\_\-ifdCmdGetStatus}!ctapi.h@{ctapi.h}}
\paragraph[{CT\_\-ifdCmdGetStatus}]{\setlength{\rightskip}{0pt plus 5cm}{\bf IS8} CT\_\-ifdCmdGetStatus (
\begin{DoxyParamCaption}
\item[{{\bf IU16}}]{ lenc, }
\item[{{\bf IU8} $\ast$}]{ command, }
\item[{{\bf IU16} $\ast$}]{ lenr, }
\item[{{\bf IU8} $\ast$}]{ response}
\end{DoxyParamCaption}
)}\hfill\label{ctapi_8h_ab333926cd2df6b77b6a911881e184af7}


References pidVirtuaCard.



Referenced by CT\_\-ifdCmd().

\index{ctapi.h@{ctapi.h}!CT\_\-ifdCmdRequestICC@{CT\_\-ifdCmdRequestICC}}
\index{CT\_\-ifdCmdRequestICC@{CT\_\-ifdCmdRequestICC}!ctapi.h@{ctapi.h}}
\paragraph[{CT\_\-ifdCmdRequestICC}]{\setlength{\rightskip}{0pt plus 5cm}{\bf IS8} CT\_\-ifdCmdRequestICC (
\begin{DoxyParamCaption}
\item[{{\bf IU16}}]{ lenc, }
\item[{{\bf IU8} $\ast$}]{ command, }
\item[{{\bf IU16} $\ast$}]{ lenr, }
\item[{{\bf IU8} $\ast$}]{ response}
\end{DoxyParamCaption}
)}\hfill\label{ctapi_8h_aa40ac7ec66071913781ff96226845110}


References atr, atrlen, CT\_\-forkIcc(), and CTAPI\_\-RV\_\-OK.



Referenced by CT\_\-ifdCmd().

\index{ctapi.h@{ctapi.h}!CT\_\-ifdCmdResetCT@{CT\_\-ifdCmdResetCT}}
\index{CT\_\-ifdCmdResetCT@{CT\_\-ifdCmdResetCT}!ctapi.h@{ctapi.h}}
\paragraph[{CT\_\-ifdCmdResetCT}]{\setlength{\rightskip}{0pt plus 5cm}{\bf IS8} CT\_\-ifdCmdResetCT (
\begin{DoxyParamCaption}
\item[{{\bf IU16}}]{ lenc, }
\item[{{\bf IU8} $\ast$}]{ command, }
\item[{{\bf IU16} $\ast$}]{ lenr, }
\item[{{\bf IU8} $\ast$}]{ response}
\end{DoxyParamCaption}
)}\hfill\label{ctapi_8h_ac4eb9ba08eb13cae90eb9c989f578abe}


References atr, atrlen, CT\_\-forkIcc(), CT\_\-stopIcc(), and CTAPI\_\-RV\_\-OK.



Referenced by CT\_\-ifdCmd().

\index{ctapi.h@{ctapi.h}!CT\_\-init@{CT\_\-init}}
\index{CT\_\-init@{CT\_\-init}!ctapi.h@{ctapi.h}}
\paragraph[{CT\_\-init}]{\setlength{\rightskip}{0pt plus 5cm}{\bf IS8} CT\_\-init (
\begin{DoxyParamCaption}
\item[{{\bf IU16}}]{ ctn, }
\item[{{\bf IU16}}]{ pn}
\end{DoxyParamCaption}
)}\hfill\label{ctapi_8h_a1e1238e91c7a0daad5d29c3a5b96c59c}


References CTAPI\_\-PORT, cthandle, and pidVirtuaCard.

\index{ctapi.h@{ctapi.h}!CT\_\-stopIcc@{CT\_\-stopIcc}}
\index{CT\_\-stopIcc@{CT\_\-stopIcc}!ctapi.h@{ctapi.h}}
\paragraph[{CT\_\-stopIcc}]{\setlength{\rightskip}{0pt plus 5cm}{\bf IS8} CT\_\-stopIcc (
\begin{DoxyParamCaption}
\item[{void}]{}
\end{DoxyParamCaption}
)}\hfill\label{ctapi_8h_a7db4e593d403b5155420634f7bdd9ba5}


References fd\_\-toCard, and pidVirtuaCard.



Referenced by CT\_\-close(), CT\_\-forkIcc(), CT\_\-ifdCmdEjectICC(), and CT\_\-ifdCmdResetCT().



\subsubsection{Variable Documentation}
\index{ctapi.h@{ctapi.h}!eepromFile@{eepromFile}}
\index{eepromFile@{eepromFile}!ctapi.h@{ctapi.h}}
\paragraph[{eepromFile}]{\setlength{\rightskip}{0pt plus 5cm}char {\bf eepromFile}[256]}\hfill\label{ctapi_8h_a91595ea16849581ca08f6b850bccf4d6}


Referenced by CT\_\-ifdCmdEepromFile(), hal\_\-init(), and hal\_\-io\_\-recByteT0().

\index{ctapi.h@{ctapi.h}!fd\_\-fromCard@{fd\_\-fromCard}}
\index{fd\_\-fromCard@{fd\_\-fromCard}!ctapi.h@{ctapi.h}}
\paragraph[{fd\_\-fromCard}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf fd\_\-fromCard}[2]}\hfill\label{ctapi_8h_a7290409d96c589b579b6b52d0c1f85d1}


Referenced by CT\_\-forkIcc(), CT\_\-t0(), hal\_\-init(), hal\_\-io\_\-recByteT0(), and hal\_\-io\_\-sendByteT0().

\index{ctapi.h@{ctapi.h}!fd\_\-toCard@{fd\_\-toCard}}
\index{fd\_\-toCard@{fd\_\-toCard}!ctapi.h@{ctapi.h}}
\paragraph[{fd\_\-toCard}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf fd\_\-toCard}[2]}\hfill\label{ctapi_8h_a748c2a8296faf59f5e7ef53b672f0122}


Referenced by CT\_\-forkIcc(), CT\_\-stopIcc(), CT\_\-t0(), and hal\_\-io\_\-recByteT0().

\index{ctapi.h@{ctapi.h}!fdEepromFile@{fdEepromFile}}
\index{fdEepromFile@{fdEepromFile}!ctapi.h@{ctapi.h}}
\paragraph[{fdEepromFile}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf fdEepromFile}}\hfill\label{ctapi_8h_a5f7757661982a05e978dbb4cd0f70bc1}


Referenced by hal\_\-init(), and hal\_\-io\_\-recByteT0().

\index{ctapi.h@{ctapi.h}!loadEepromFile@{loadEepromFile}}
\index{loadEepromFile@{loadEepromFile}!ctapi.h@{ctapi.h}}
\paragraph[{loadEepromFile}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf loadEepromFile}}\hfill\label{ctapi_8h_a59c083ae3f67fa2dac32718136d60e96}


Referenced by CT\_\-ifdCmdEepromFile(), and hal\_\-init().

\index{ctapi.h@{ctapi.h}!saveEepromFile@{saveEepromFile}}
\index{saveEepromFile@{saveEepromFile}!ctapi.h@{ctapi.h}}
\paragraph[{saveEepromFile}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf saveEepromFile}}\hfill\label{ctapi_8h_a4792ff850c85ef5072714ffd0a56ef1d}


Referenced by CT\_\-ifdCmdEepromFile(), and hal\_\-io\_\-recByteT0().

